from motor.motor_asyncio import AsyncIOMotorClient
import os

class MongoConfig:
    @staticmethod
    def get_client():
        mongodb_uri = os.getenv('MONGODB_URI', 'mongodb://localhost:27017')
        database_name = os.getenv('MONGODB_DATABASE', 'contentforge')
        client = AsyncIOMotorClient(mongodb_uri)
        return client[database_name] 